package com.example.test_001;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class JUnitExample_001 {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		fail("Not yet implemented");
	}
	
	
	@Test
	public void testHashcode(){
		String a = "HashCode";
		System.out.println(a.hashCode());
		System.out.println(a.hashCode());
		
		String b = "hashCode";
		System.out.println(b.hashCode());
		
		String c = "Hashcode";
		System.out.println(c.hashCode());
		
		String aa = "HashCode";
		System.out.println(aa.hashCode());
		
		String aaa = new String("HashCode");
		System.out.println(aaa.hashCode());
	}
	
	
	
	@Test
	public void testListRemove(){
		List lst = new ArrayList();
		lst.add("1");
		lst.add("2");
		lst.add("3");
		lst.add("4");
		for(Object obj:lst){
			System.out.println(obj);
		}
		lst.remove(1);
		lst.add("5");
		lst.remove(2);
		Collections.reverse(lst);
		for(Object obj:lst){
			System.out.println(obj);
		}
		
	}
	
	
	
	

}
